package com.prototipo_picshare;

import android.os.Bundle;
import android.provider.MediaStore;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Crear_grupo extends Activity implements OnClickListener {


	Button compartir_FB;
	Button compartir_bluetoo;
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_crear_grupo);
		//boton  FB
		compartir_FB=(Button) findViewById(R.id.BTFB);
		compartir_FB.setOnClickListener(this);
		//Bluetooth
		compartir_bluetoo=(Button) findViewById(R.id.BTBluetooth);
		compartir_bluetoo.setOnClickListener(this);
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.crear_grupo, menu);
		return true;
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) 
		{
			case R.id.BTFB:
				Intent it_Cargar_camara = new Intent(MediaStore.ACTION_IMAGE_CAPTURE );
				startActivity(it_Cargar_camara);	
				//intent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);
			break;
			case R.id.BTBluetooth:
				Intent it_Cargar_camara_bluetooth = new Intent(MediaStore.ACTION_IMAGE_CAPTURE );
				startActivity(it_Cargar_camara_bluetooth);	
				//intent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);
			break;
			

			default:
		break;
		
		}
		
	}

}
